<div class="tab-pane active show">
    <div class="contentBg">
        <div class="myTxtTab-div">
            <ul id="myTxtTab-s" class="nav nav-pills myTxtTab-s">
                <li class="li_bordet_right">
                    <a href="#tab1-s" data-toggle="tab" class="active show">分配内容</a>
                </li>
            </ul>
            <div class="row right-search" *ngIf="right['taskPermissionContent']['query']">
                <input matInput type="text" class="input_style" placeholder="请输入任务内容名称" #queryCriteria="ngModel" (input)="_retrieval(queryCriteria.value)" (keydown.enter)="_retrieval(queryCriteria.value)"
                    ngModel />
                <button  mat-button class="btn btn-search btn-blue" (click)="_retrieval(queryCriteria.value)">查询</button>
            </div>
        </div>
        <div id="myTabContent-s" class="tab-content">
            <div class="tab-pane active show  position-relative" id="tab1-s">
                <div class="row txtTitle" style="left: 20px; position: relative;">
                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <!-- <button class="btn btn-info btn-blue" data-toggle="modal" data-target="#addContent">新增内容</button> -->
                        <button type="button" class="btn btn-primary" *ngIf="taskType != 2 && (parentId == '0' && completeStatus != '1') && right['taskPermissionContent']['distributionContext']" data-toggle="modal" data-target="#taskProductList"
                         (click)="listproduct.getProductList(taskId,projectId)">分配任务内容</button>
                         <button type="button" class="btn btn-primary" *ngIf="taskType == 2 && (parentId == '0' && completeStatus != '1') && right['taskPermissionContent']['distributionContext']" data-toggle="modal"
                         data-target="#taskThemeTableList" (click)="themeTable.getThemeTabList(taskId)">分配任务内容</button>

                        <button type="button" class="btn btn-primary" *ngIf="taskType != 2 && (parentId != '0' && completeStatus != '1') && right['taskPermissionContent']['create']" data-toggle="modal" data-target="#childTaskProductList"
                         (click)="childlistproduct.getSubTaskUnAssignedProduct(taskId)">新增任务内容</button>
                         <button type="button" class="btn btn-primary" *ngIf="taskType == 2 && (parentId != '0' && completeStatus != '1') && right['taskPermissionContent']['create']" data-toggle="modal"
                         data-target="#taskThemeTableList" (click)="themeTable.getChildThemeTabList(taskId)">新增任务内容</button>

                        <!-- <button class="btn btn-info btn-blue" [disabled]="true" (click)="setRefIndexingData();">设为参考标引</button> -->
                        <button *ngIf="right['taskPermissionContent']['exportInnertextTaskContext'] && taskType != 2" class="btn btn-blue" (click)="initService._init(1)" data-toggle="modal" data-target="#productExport"  [disabled]="table.removeTableService.getRemoveTableId == 0">导出标引结果</button>
                    </div>
                </div>

                <!-- 表格 BEGIN -->
                <app-product-indexing-task-content-table #table></app-product-indexing-task-content-table>
                <!-- 表格 END -->

                <!-- 分页 BEGIN -->
                <app-pagination [getTotalItems]="table.total" (isLoadTableFromPagination)="_pagination($event)"></app-pagination>
                <!-- 分页 END -->
            </div>
        </div>
    </div>
</div>


<!-- 分配任务内容Start -->
<app-product-indexing-task-list-product #listproduct (taskProductContent)="table.getTaskProductList();"></app-product-indexing-task-list-product>
<!-- 分配任务内容End -->

<!-- 主题词标引分配任务内容Start -->
<app-theme-table #themeTable (taskProductContent)="table.getTaskProductList();"></app-theme-table>
<!-- 主题词标引分配任务内容End --> 

<!-- 新增任务内容Start -->
<app-product-indexing-child-list-product #childlistproduct (taskProductContent)="table.getSubTaskUnAssignedProduct();"></app-product-indexing-child-list-product>
<!-- 新增任务内容End -->


<!--新增弹窗 BEGIN-->
<app-app-product-index-task-content-add (onSubmit)="table._taskContentList()"></app-app-product-index-task-content-add>
<!--新增弹窗 END-->

<!-- 产品导出标引结果 -->
<app-product-export [taskId] = "taskId"></app-product-export>
<!-- 产品导出标引结果 end -->